/**
 * 作者: 会写BUG
 * 创作日期: 2025/3/21 09:37
 * 描述: cwbQtPractice.GameWindow
 *
 **/
#pragma once

#include <QDialog>
#include <QLabel>
#include <QStackedWidget>

class DisplayPanel;
class ChessPanel;
class ScoreRecord;
class AboutPanel;

class GameWindow : public QDialog {

    Q_OBJECT

public:
    explicit GameWindow(QWidget *parent = nullptr);
    ~GameWindow() override;

protected:
    void paintEvent(QPaintEvent* event) override;
    void showEvent(QShowEvent *event) override;

private:
    void initUI();
    void initConnect();

private Q_SLOTS:
    void aboutGame();

private:
    QStackedWidget * center_stacked_ = nullptr;
    ChessPanel* chess_panel_ = nullptr;
    DisplayPanel* display_panel_ = nullptr;
    AboutPanel* about_panel_ = nullptr;

};
